<?php
/**
 * Created by PhpStorm.
 * User: wanghongbing
 * Date: 2018/5/27
 * Time: 上午2:45
 */
namespace app\com\validate;
use think\Validate;

class Teacher extends Validate{

protected $rule =[

    'username' => 'require|unique:teacher|length:4,25',
    'name'  => 'require|length:2,25',
    'sex' => 'in:0,1',
    'email' => 'email',
];


}